package com.x.Part5_接口.CompareTest;

/**
 * ClassName: CompareTest
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.05 20:19
 */
public class CompareTest {
    public static void main(String[] args) {
        CompareCircle c1 = new CompareCircle(2.3);
        CompareCircle c2 = new CompareCircle(2.3);

        System.out.println(c1.CompareTo(c2));

        CompareCircle c3 = new CompareCircle(2.0);
        CompareCircle c4 = new CompareCircle(5.3);

        System.out.println(c3.CompareTo(c4));
        System.out.println(c4.CompareTo(c3));





    }
}
